<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="header(title)">
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <link rel="icon" href="/static/images/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" th:href="@{/images/favicon.ico}" href="/static/images/favicon.ico" type="image/x-icon">
    <title th:replace="${title}">Title</title>
    <link href="../static/dist/semantic/semantic.min.css" rel="stylesheet" th:href="@{/dist/semantic/semantic.min.css}">
    <link href="../static/css/typo.css" rel="stylesheet" th:href="@{/css/typo.css}">
    <link href="../static/lib/prism/prism.css" rel="stylesheet" th:href="@{/lib/prism/prism.css}">
    <link href="../static/lib/tocbot/tocbot.css" rel="stylesheet" th:href="@{/lib/tocbot/tocbot.css}">
    <link href="../static/css/me.css" rel="stylesheet" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="/static/lib/animate/animate.css" th:href="@{/lib/animate/animate.css}">
</head>
<body>
<!-- 导航 -->

<nav id="nav" class="ui basic segment attached m-padded-tb-mini  m-fixed m-top something m-height animated fadeInDown" style="background: rgba(255,255,255,0.5);border: none" th:fragment="menu(n)">
    <div class="ui secondary stackable menu m-margin-tb-mini">
        <h2 class="ui brown header item m-padded-mini" th:href="@{/}">猪油骨</h2>
        <a href="#" th:href="@{/}" class="right m-item item m-mobile-hide  m-padded-tb-small m-color" th:classappend="${n==1} ? 'active'"><svg class="icon1" aria-hidden="true">
            <use xlink:href="#icon-shouye"></use>
        </svg>首页</a>
        <a href="#"  th:href="@{/types/-1}" class="m-item item m-mobile-hide m-padded-tb-small m-color" th:classappend="${n==2} ? 'active'"><svg class="icon1" aria-hidden="true">
            <use xlink:href="#icon-fenlei1"></use>
        </svg> 分类</a>
        <a href="#" th:href="@{/tags/-1}" class="m-item item m-mobile-hide  m-padded-tb-small m-color" th:classappend="${n==3} ? 'active'"><svg class="icon1" aria-hidden="true">
            <use xlink:href="#icon-_biaoqian"></use>
        </svg> 标签</a>
        <a href="#" th:href="@{/archives/}"  class="m-item item m-mobile-hide  m-padded-tb-small m-color" th:classappend="${n==4} ? 'active'"><svg class="icon1" aria-hidden="true">
            <use xlink:href="#icon-guidangrizhi"></use>
        </svg>归档</a>
        <a href="#" th:href="@{/about}" class="m-item item m-mobile-hide  m-padded-tb-small m-color" th:classappend="${n==5} ? 'active'"><svg class="icon1" aria-hidden="true">
            <use xlink:href="#icon-guanyuwomen2"></use>
        </svg>关于我</a>
        <a href="#" class="ui button m-item item m-mobile-hide m-padded-mini m-color"><svg class="icon1" aria-hidden="true">
            <use xlink:href="#icon-sousuo1"></use>
        </svg>搜索</a>
    </div>
    <div class="ui modal m-container-mini ">
        <i class="close icon"></i>
        <h2 class="ui grey header item ">请输入搜索内容</h2>
        <form name="search" action="#" th:action="@{/search}" method="post" target="_blank">
            <div class="ui icon input ">
                <input type="text" name="query" placeholder="Search...." th:value="${query}">
                <i onclick="document.forms['search'].submit()" class="search link icon"></i>
            </div>
        </form>
    </div>
    </div>
    <button class="ui menu toggle black icon button m-right-top m-mobile-show"
            style="background: rgba(255,255,255,0);border: none"><i class="sidebar icon"></i></button>
</nav>

<!-- 底部 -->
<footer class="ui inverted vertical segment m-padded-tb-small m-position-bottom"  th:fragment="footer"
        style="background: rgba(0,0,0,0.5)">
    <div class="ui center aligned container">
        <p class="m-text-thin m-text-spaced m-opacity-tiny" style="color: #fff2f2">Copyright © 2022 猪油骨</p>
        <a href="http://beian.miit.gov.cn/" target="_blank"
           class="m-text-thin m-text-spaced m-opacity-tiny" style="color: #fff2f2">桂ICP备2022010618号</a>
    </div>
</footer>

<th:block th:fragment="script">
    <script src="../static/dist/jquery/jquery-3.6.0.min.js" th:src="@{/dist/jquery/jquery-3.6.0.min.js}"></script>
    <script src="../static/dist/semantic/semantic.min.js" th:src="@{/dist/semantic/semantic.min.js}"></script>
<!--    <script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>-->
    <script src="/static/lib/scrollTo/jquery.scrollTo.min.js" th:src="@{/lib/scrollTo/jquery.scrollTo.min.js}"></script>
    <script src="../static/lib/prism/prism.js" th:src="@{/lib/prism/prism.js}"></script>
    <script src="../static/lib/tocbot/tocbot.min.js" th:src="@{/lib/tocbot/tocbot.min.js}"></script>
    <script src="../static/lib/qrcode/qrcode.min.js" th:src="@{/lib/qrcode/qrcode.min.js}"></script>
    <script src="../static/lib/waypoints/jquery.waypoints.min.js" th:src="@{/lib/waypoints/jquery.waypoints.min.js}"></script>
    <script src="/static/lib/font_3778293_cgykn3zjhgv/iconfont.js" th:src="@{/lib/font_3778293_cgykn3zjhgv/iconfont.js}"></script>
</th:block>
<script !src="">
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
        console.log("点击")
    })
    $(function () {
    $(".ui.button.m-item").on("click", function () {
        $(".ui.modal").modal("show");
    })
        $('.gitee').popup({
            position: 'bottom center'
        });
        $('.qq').popup({
            position: 'bottom center'
        });
        $('.weChat').popup({
            popup: $('.weChatQR'),
            position: 'bottom center'
        });
})</script>
</body>
</html>
